﻿using System;

namespace DllDependenciesAnalysis
{
    public static class VersionEx
    {
        public static long GetLongHashCode(this Version version)
        {
            long num = 0;
            num |= ((long)version.Major & 0xFF) << 56;
            num |= ((long)version.Minor & 0xFFFF) << 40;
            num |= ((long)version.Build & 0xFFFF) << 24;
            return num | ((long)version.Revision & 0xFFFFFF);
        }
    }
}
